package com.jjsj.mall.shop.entity;

import com.jjsj.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单地址对象 yoshop_order_address
 *
 * @author www.joolun.com
 * @date 2022-10-24
 */
@Data
public class YoshopOrderAddress {
    private static final long serialVersionUID = 1L;

    /**
     * 地址id
     */
    private String orderAddressId;

    /**
     * 收货人姓名
     */
    @Excel(name = "收货人姓名")
    private String name;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    private String phone;

    /**
     * 所在省份id
     */
    @Excel(name = "所在省份id")
    private String provinceId;

    private String province;

    /**
     * 所在城市id
     */
    @Excel(name = "所在城市id")
    private String cityId;
    private String city;
    /**
     * 所在区id
     */
    @Excel(name = "所在区id")
    private String regionId;
    private String region;
    /**
     * 详细地址
     */
    @Excel(name = "详细地址")
    private String detail;

    /**
     * 订单id
     */
    @Excel(name = "订单id")
    private String orderId;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private String userId;

    /**
     * 小程序id
     */
    @Excel(name = "小程序id")
    private String wxappId;

    private Long createTime;

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public void setOrderAddressId(String orderAddressId) {
        this.orderAddressId = orderAddressId;
    }

    public String getOrderAddressId() {
        return orderAddressId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }


    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    public String getProvinceId() {
        return provinceId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getCityId() {
        return cityId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getDetail() {
        return detail;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public void setWxappId(String wxappId) {
        this.wxappId = wxappId;
    }

    public String getWxappId() {
        return wxappId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("orderAddressId", getOrderAddressId())
                .append("name", getName())
                .append("phone", getPhone())
                .append("provinceId", getProvinceId())
                .append("cityId", getCityId())
                .append("regionId", getRegionId())
                .append("detail", getDetail())
                .append("orderId", getOrderId())
                .append("userId", getUserId())
                .append("wxappId", getWxappId())
                .toString();
    }
}
